//
//  Account.swift
//  GSD-SwiftAPP
//
//  Created by Steve on 2019/9/12.
//  Copyright © 2019 faker. All rights reserved.
//

import Foundation

struct Account : Codable {
    let uVo: UVo
    let accountType: String?
    
}




extension Account {

    struct UVo : Codable {
        var reservationCount: Int = 0
        var password: String?
        var deleted: String?
        var wxUid: Int = 0
        var unionid: String?
        var createDate: Int = 0
        var bindPhone: String?
        var type: String?
         var customerVO: CustomerVO?

        enum CodingKeys: String, CodingKey {
            case reservationCount
            case password
            case wxUid
            case unionid
            case createDate
            case bindPhone
            case type
            case customerVO

        }
    }
    
    
    
    struct CustomerVO :Codable {
        var isdiary: String?
        var deleted: String?
        var headPortraitUrl: String?
        var totalIntefral: CGFloat = 0.0
        var customerId: Int = 0
        var customerName: String?

        enum CodingKeys: String, CodingKey {
            case isdiary
            case deleted
            case headPortraitUrl
            case totalIntefral
            case customerId
            case customerName

        }
    }


}








//extension UVo {
//
//    struct CustomerVO :Codable {
//        var isdiary: String?
//        var deleted: String?
//        var headPortraitUrl: String?
//        var totalIntefral: CGFloat = 0.0
//        var customerId: Int = 0
//        var customerName: String?
//
//        enum CodingKeys: String, CodingKey {
//            case isdiary
//            case deleted
//            case headPortraitUrl
//            case totalIntefral
//            case customerId
//            case customerName
//
//        }
//    }
////
//}



